<div class="clearfix js-responses js-loadadmin-chart-transactions-ctp status-bottom">

    <div class="admin-side1-tl">
         <div class="admin-side1-tr">
         <div class="admin-side1-tm">
			<h2 class="chart-dashboard-title ribbon-title"><?php echo __l('Overview'); ?>			
			<span class="js-chart-showhide <?php echo !empty($arrow)?$arrow:''; ?> {'chart_block':'admin-dashboard-transaction', 'dataloading':'div.js-loadadmin-chart-transactions-ctp',  'dataurl':'admin/charts/chart_transactions/is_ajax_load:1/user_type_id:<?php echo !empty($user_type_id)?$user_type_id:''; ?>'}"><?php echo !empty($arrow)?$arrow:''; ?>&nbsp;</span></h2>
        </div>
        </div>
        </div>
		<div class="admin-center-block clearfix" id="admin-dashboard-overview">
    <div class="clearfix">
	 <?php echo $this->Form->create('Chart' , array('class' => "language-form {'chart_block':'admin-dashboard-overview', 'dataloading':'div.js-loadadmin-chart-transactions-ctp'}", 'action' => 'chart_transactions')); ?>
		<?php
		echo $this->Form->input('select_range_id', array('class' => 'js-chart-autosubmit', 'label' => __l('Select Range'))); ?>
		<div class="hide"> <?php echo $this->Form->submit('Submit');  ?> </div>
	<?php echo $this->Form->end(); ?>
	</div>
	<div class="js-load-line-graph chart-half-section {'data_container':'transactions_line_data', 'chart_container':'transactions_line_chart', 'chart_title':'<?php echo __l('Transactions') ;?>', 'chart_y_title': '<?php echo __l('Value');?>'}">
     <div class="dashboard-tl">
         <div class="dashboard-tr">
             <div class="dashboard-tc">
             </div>
         </div>
     </div>
     <div class="dashboard-cl">
         <div class="dashboard-cr">
         <div class="dashboard-cc clearfix">
           	<div id="transactions_line_chart" class="admin-dashboard-chart"></div>
    		<div class="hide">
    			<table id="transactions_line_data" class="list">
    			<thead>
    				<tr>
    				   <th>Period</th>
    					   <?php foreach($chart_transactions_periods as $_period): ?>
    						 <th><?php echo $_period['display']; ?></th>
    					   <?php endforeach; ?>
    				</tr>
    				</thead>
    				<tbody>
    				   <?php foreach($chart_transactions_data as $display_name => $chart_data): ?>
    						<tr>
    							<th><?php echo $display_name; ?></th>
    							<?php foreach($chart_data as $val): ?>
    								<td><?php echo $val; ?></td>
    							<?php endforeach; ?>
    						</tr>
    				   <?php endforeach; ?>
    			 </tbody>
    			</table>
    		</div>
		</div>
		</div>
		</div>
        <div class="dashboard-bl">
             <div class="dashboard-br">
                 <div class="dashboard-bc">
                 </div>
             </div>
         </div>

	</div>
	<?php if(!empty($chart_pie_data)): ?>
			<div class="js-load-pie-chart chart-half-section {'data_container':'transaction_pie_data', 'chart_container':'transaction_pie_chart', 'chart_title':'<?php echo __l('Transactions');?>', 'chart_y_title': '<?php echo __l('Value');?>'}">
           <div class="dashboard-tl">
                 <div class="dashboard-tr">
                     <div class="dashboard-tc">
                     </div>
                 </div>
             </div>
             <div class="dashboard-cl">
                 <div class="dashboard-cr">
                 <div class="dashboard-cc clearfix">
            	<div id="transaction_pie_chart" class="admin-dashboard-chart"></div>
				<div class="hide">
					<table id="transaction_pie_data" class="list">
						<tbody>
							<?php foreach($chart_pie_data as $display_name => $val): ?>
							<tr>
							   <th><?php echo $display_name; ?></th>
							   <td><?php echo $val; ?></td>
							</tr>
							<?php endforeach; ?>
						</tbody>
					</table>
				</div>
					</div>
        		</div>
        		</div>
                <div class="dashboard-bl">
                     <div class="dashboard-br">
                         <div class="dashboard-bc">
                         </div>
                     </div>
                 </div>
			</div>
		<?php endif; ?>
	</div>
     <div class="admin-side1-bl">
         <div class="admin-side1-br">
         <div class="admin-side1-bm">
            </div>
        </div>
        </div>
</div>